<template>
  <div>
    <h2>我是demo-father1</h2>
    {{ num }} ----{{ num2 }}
    <!-- 语法糖 -->
    <!-- <son :value="num" @input="(val)=>num=val" /> -->
    <!-- v-model只能传一个值 -->
    <!-- <son v-model="num" /> -->

    <!-- <son :aa.sync="num" :bb.sync="num2" /> -->
    <son update:aa="num" update:bb="num2" />
  </div>
</template>
<script>
import son from '@/views/sync/son/son.vue'
export default {
  components: {
    son
  },
  data() {
    return {
      num: 100,
      num2: 200
    }
  },
  methods: {
    changefn(val) {
      this.num = val
    }
  }
}
</script>
